package cn.edu.pku.ss.lbs.stub;

import cn.edu.pku.ss.lbs.blip.BlipUtility;
import cn.edu.pku.ss.lbs.position.SignalSource;

import java.util.Scanner;

/**
 * User: Xu
 * Date: 2009-3-9
 * Time: 18:49:32
 */
public class Main {
    public static void main(String[] args) {
        String station = "b";
        String terminal = "00:1F:DF:FF:BF:65";
        String message = "Hello, world!";
        ExperimentSignalProcessor processor = new ExperimentSignalProcessor(station, terminal);
        SignalSource source = BlipUtility.getInstance().getSignalSource();
        source.addSignalProcessor(processor);
        BlipUtility.getInstance().sendMessage(station, terminal, message);
        System.out.println("Press [ENTER] to exit.");
        new Scanner(System.in).nextLine();
        System.exit(0);
    }
}
